package cn.tedu.cool.mapper;

import cn.tedu.cool.entity.Ban;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BanMapper {
    @Select("select * from ban")
    List<Ban> select();
    @Delete("delete from ban where id=#{id}")
    void deleteById(int id);
    @Insert("insert into ban values(null,#{name},#{url})")
    void insert(Ban ban);
}
